class MyClass {
    static int staticVariable;
    int instanceVariable;

    public static void main(String[] args) {
        MyClass obj1 = new MyClass();
        MyClass obj2 = new MyClass();

        obj1.staticVariable = 10;
        System.out.println(obj2.staticVariable);  // 输出 10

        obj1.instanceVariable = 20;
        System.out.println(obj2.instanceVariable);  // 输出 0

        obj2.instanceVariable = 30;
        System.out.println(obj1.instanceVariable);  //输出20

        obj1.instanceVariable = 30;  //输出30
        System.out.println(obj1.instanceVariable);
    }
}